package com.ssm.pojo;

import java.io.Serializable;


/**
 * @author dm
 * @date 2017-11-02
 */
public class User implements Serializable{
	
	/**
	 * 用户信息
	 */
	private static final long serialVersionUID = 1L;

	private String id;

	private String name;
	
	private String password;
	
	private String createTime;
	
	private Integer roleId;
	
	private String userId;

	private Long chartId;
	
	private String loginName;
	
	 private String salt;  
	  
	 private Boolean locked = Boolean.FALSE;  
	  
	
	// 分页参数
	private Integer pageCount;
	private Integer beginRow;
	private Integer num;
	
	
	
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Long getChartId() {
		return chartId;
	}
	public void setChartId(Long chartId) {
		this.chartId = chartId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public Integer getPageCount() {
		return pageCount;
	}
	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}
	public Integer getBeginRow() {
		return beginRow;
	}
	public void setBeginRow(Integer beginRow) {
		this.beginRow = beginRow;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	public Boolean getLocked() {
		return locked;
	}
	public void setLocked(Boolean locked) {
		this.locked = locked;
	}
	
	public String getCredentialsSalt() {  
        return name + salt;  
    }  


	
	
	
}